package com.android.vgongyi.activity;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.android.vgongyi.R;
import com.android.vgongyi.common.AppApiPreference;

public class InfoActivity extends BaseActivity{

	private WebView aboutInfoweWebView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.info);
		MenuDirectionConfig(this);
        setCommonTitle(this, R.string.common_2);
        
//        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(AppApiPreference.ABOUT_URL));
//        startActivity(intent);
        aboutInfoweWebView    = (WebView) this.findViewById(R.id.about_info);     
        WebSettings settings  = aboutInfoweWebView.getSettings();
        
        aboutInfoweWebView.setBackgroundColor(0);
        settings.setDefaultFontSize(20);     
        aboutInfoweWebView.setVerticalScrollBarEnabled(false);
        aboutInfoweWebView.setHorizontalScrollBarEnabled(false);
        aboutInfoweWebView.getSettings().setJavaScriptEnabled(true);
        
        aboutInfoweWebView.loadUrl(AppApiPreference.ABOUT_URL);//"http://test.ci77.com/weigongyi/index.php?mod=about"
	}
}
